package com.springbootInit.backend.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.springbootInit.backend.model.dto.interfaceInfo.InterfaceInfoQueryRequest;
import com.springbootInit.backend.model.entity.InterfaceInfo;


import javax.servlet.http.HttpServletRequest;

/**
 * @author wzhdjy
 * @description 针对表【interface_info(接口信息)】的数据库操作Service
 * @createDate 2023-11-05 10:30:15
 */
public interface InterfaceInfoService extends IService<InterfaceInfo> {
    /**
     * 校验
     *
     * @param interfaceInfo
     * @param add
     */
    void validInterfaceInfo(InterfaceInfo interfaceInfo, boolean add);

    /**
     * 获取帖子封装
     *
     * @param interfaceInfo
     * @param request
     * @return
     */
    InterfaceInfo getInterfaceInfo(InterfaceInfo interfaceInfo, HttpServletRequest request);


    QueryWrapper<InterfaceInfo> getQueryWrapper(InterfaceInfoQueryRequest interfaceInfoQueryRequest);

//    Page<InterfaceInfo> getInterfaceInfoPage(Page<InterfaceInfo> interfaceInfoPage, HttpServletRequest request);
}
